Optimal. Leaf size=27 \[ \frac{a x^{3 n}}{3 n}+\frac{b x^{4 n}}{4 n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0073678, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {14} \[ \frac{a x^{3 n}}{3 n}+\frac{b x^{4 n}}{4 n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rubi steps
\begin{align*} \int x^{-1+3 n} \left (a+b x^n\right ) \, dx &=\int \left (a x^{-1+3 n}+b x^{-1+4 n}\right ) \, dx\\ &=\frac{a x^{3 n}}{3 n}+\frac{b x^{4 n}}{4 n}\\ \end{align*}
Mathematica [A] time = 0.009661, size = 22, normalized size = 0.81 \[ \frac{x^{3 n} \left (4 a+3 b x^n\right )}{12 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 28, normalized size = 1. \begin{align*}{\frac{a \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{3}}{3\,n}}+{\frac{b \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{4}}{4\,n}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.01537, size = 49, normalized size = 1.81 \begin{align*} \frac{3 \, b x^{4 \, n} + 4 \, a x^{3 \, n}}{12 \, n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.23031, size = 26, normalized size = 0.96 \begin{align*} \begin{cases} \frac{a x^{3 n}}{3 n} + \frac{b x^{4 n}}{4 n} & \text{for}\: n \neq 0 \\\left (a + b\right ) \log{\left (x \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x^{n} + a\right )} x^{3 \, n - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]